package com.example.easybuy.mapper;

import com.example.easybuy.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewsMapper {
    List<News> findAll();
    
    News findById(@Param("id") Long id);
    
    int insert(News news);
    
    int update(News news);
    
    int deleteById(@Param("id") Long id);
}